
  <template>
  <div style="display: flex; justify-content: center; align-items: center; height: 100vh;" class="base">

    <el-card class="box-card" style="align-items: center">
    <template #header>
      <div class="card-header">
        <span>您正试图通过路由守卫前往内部页面</span>
        <el-button class="button" text @click="goBack">返回登录界面</el-button>
      </div>
    </template>
    <div v-for="o in 4" :key="o" class="text item">{{ ' ' }}</div>
    <template #footer>Footer content</template>
  </el-card>

</div>
  
</template>

<script setup>

import { useRouter } from "vue-router";

let $router = useRouter();

const goBack = () => {
    
    $router.push("/");
}

</script>

<style>
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.text {
  font-size: 14px;
}

.item {
  margin-bottom: 18px;
}

.box-card {
  width: 480px;
}
.base{
      
      background-image: url("../../assets/images/bkgWeather.png");
      background-size: 100%;
  }
</style>
  
